package com.five.monkey.feign.provider.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 节点信息表
 * </p>
 *
 * @author 狻猊
 * @since 2021-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_node")
public class NodeModel implements Serializable {

    private static final long serialVersionUID = 1937573496293072583L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 节点所在图谱id
     */
    private Long graphId;

    /**
     * 节点父节点id
     */
    private Long parentId;

    /**
     * 节点标题
     */
    private String title;

    /**
     * 节点形状。0：矩形；1：平行四边形；2圆形；3椭圆形；4：三角形
     */
    private Integer shape;

    /**
     * 节点状态。0：正常；1：已删除
     */
    private Integer status;

    /**
     * 节点创建时间
     */
    private Date createTime;

    /**
     * 节点修改时间
     */
    private Date updateTime;


}
